package com.trajan.exercise.thread;

/*

   Created with IntelliJ IDEA.

   Ing. Tomáš Herich
   --------------------------- 
   18. 06. 2013
   5:48 PM

*/

public class MyRunnableExample implements Runnable{

    public static void main(String[] args) {


        System.out.println(MyRunnableExample.class.getSimpleName());
        MyRunnableExample runnable = new MyRunnableExample();
        new Thread(runnable).run();

    }

    @Override
    public void run() {

        int i = 0;

        while (i++ < 30)  {

            System.out.print(i + ", ");

        }

    }
}
